package cn.com.dycc.common.attach.entity;

import java.io.Serializable;

public class AttachResult implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2721776030067545590L;
	
	private String id;			//附件id
	private String message_no;		//待办id
	private Integer attach_type;    //1
	private String title;      		//附件名称
	private String attach_ext;		//附件后缀
	private String attach_path;		//附件路径
	private String attach_size;		//附件长度
	
	public AttachResult(){}

	public AttachResult(String id, String message_no, Integer attach_type, String title, String attach_ext,
			String attach_path, String attach_size) {
		super();
		this.id = id;
		this.message_no = message_no;
		this.attach_type = attach_type;
		this.title = title;
		this.attach_ext = attach_ext;
		this.attach_path = attach_path;
		this.attach_size = attach_size;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMessage_no() {
		return message_no;
	}

	public void setMessage_no(String message_no) {
		this.message_no = message_no;
	}

	public Integer getAttach_type() {
		return attach_type;
	}

	public void setAttach_type(Integer attach_type) {
		this.attach_type = attach_type;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAttach_ext() {
		return attach_ext;
	}

	public void setAttach_ext(String attach_ext) {
		this.attach_ext = attach_ext;
	}

	public String getAttach_path() {
		return attach_path;
	}

	public void setAttach_path(String attach_path) {
		this.attach_path = attach_path;
	}

	public String getAttach_size() {
		return attach_size;
	}

	public void setAttach_size(String attach_size) {
		this.attach_size = attach_size;
	}

	@Override
	public String toString() {
		return "AttachResult [id=" + id + ", message_no=" + message_no + ", attach_type=" + attach_type + ", title="
				+ title + ", attach_ext=" + attach_ext + ", attach_path=" + attach_path + ", attach_size=" + attach_size
				+ "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AttachResult other = (AttachResult) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
	

}
